package com.yesido.moshi.seven.Segregation_geli;

/**
 * @author yesido
 * @description 接口隔离原则
 * @date 2023-06-11 23:47
 * @Version 8.3
 */
public class Segregation1 {
    public static void main(String[] args) {
        //使用
        A  a = new A();
        //A类通过接口去依赖B类
        a.depend1(new B());
        a.depend2(new B());
        a.depend3(new B());

        C c = new C();
        c.depend1(new D());
        c.depend4(new D());
        c.depend5(new D());
    }

}
